package com.bjsxt.chapter14_mediator;

/**
 * @ClassName Market
 * @Description 市场部
 * @Author 黑马程序员
 * @Date 15:49 2024/6/23
 * @Version 1.0
 **/
public class Market implements Department{
    // 持有中介者(总经理)的引用
    private Mediator m;

    public Market(Mediator m) {
        this.m = m;
        m.register("market",this);
    }

    @Override
    public void selfAction() {
        System.out.println("跑去接项目!");
    }

    @Override
    public void outerAction() {
        System.out.println("汇报工作,承接项目进度,需要资金支持!");
        m.command("facial");
    }
}
